Skip to main content

vScriptValTrimElement

Extract a range of elements from a ScriptVal array as a table This node is useful for creating animated vector graphics that are revealed over time when your 2D point data is encoded into a ScriptVal Lua table structure that represents a polyline shape.

Core / ScriptValScriptVal
vScriptValTrimElement node

Parameters​

ParameterTypeDefaultDescription
ScriptValDATATYPE—ScriptVal array to trim, e.g. a polyline's point list.
FromInteger11-based index of the first element to keep. Animate together with To to reveal a shape over time.
ToInteger11-based index of the last element to keep.
StepInteger1Interval between kept elements — 1 keeps every element, 2 keeps every other, and so on.
Show InputInteger1.0Reveals the wire for the ScriptVal connection in the Flow view.